from django.contrib import admin
from useropera.models import Order, Favorite,ServerCenter

# Register your models here.
@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
    list_display = [
        "pk",
        "ordernum",
        "goods",
        "owner",
        "status",
        "goodsnums",
        "create_time",
        "deliveraddress",
    ]


@admin.register(Favorite)
class FavoriteAdmin(admin.ModelAdmin):
    list_display = ["pk", "goods", "owner","add_time"]

@admin.register(ServerCenter)
class ServerCenterAdmin(admin.ModelAdmin):
    list_display = [
        "pk",
        "order",
        "add_time",
        "servernumber",
        "owner",
        "details",
        "servertype",
        "finishitime",
        "serverstatus",
        "solution",
        "serverrate",
        "ratemessage",
        "outoftime",
        "backupsolution"
    ]